<?php

namespace Admin\Model;
use Think\Model;

/**
 * 试卷文档模型
 * @author zhiyuan
 *
 */

class PaperDocumentsModel extends Model {
	
	protected $_validate = array(
			array('title', 'require', '标题不能为空', self::MUST_VALIDATE, 'regex', self::MODEL_BOTH)
	);
	
	protected $_auto = array(
			array('create_time', NOW_TIME, self::MODEL_INSERT),
			array('update_time', NOW_TIME, self::MODEL_BOTH),
			array('status', '1', self::MODEL_INSERT)
	);

}
?>
